package dsk.demo.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("user")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserEntity implements Serializable {

    @TableId
    private Integer id;

    private String username;
    private String password;
    private String email;
    @TableField(exist = false)
    private String emailCode;
    private String mobile;
    private String companyName;
    private String firstName;
    private String lastName;

    private String token;
    private Date loginTime;
    private Date createTime;

}
